import Taro from "@tarojs/taro"

declare type pageType = 'index' | 'user'
export const toSubPage = (sub: pageType, page: string) => {
    Taro.navigateTo({
        url: `/pages/${sub}SubPage/${page}/${page}`
    })
} 